package com.auth.common.util.security.secrecy;

import javax.crypto.NoSuchPaddingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;

/**
 * Secrecy
 *
 * @description:
 * @author: cyj
 * @date 2021 -12-15 14:25:07
 *
 *
 */
public interface Secrecy {

    /**
     * Encrypt string 加密
     *
     * @param value value
     * @return the string
     */
    String encrypt(String value);

    /**
     * Decrypt string 解密
     *
     * @param value value
     * @return the string
     */
    String decrypt(String value);

}
